assignment problem with multiple iterations